/*
*用途：评论表
*作者：hwq
*创建日期：2019-01-14 16:50
*/
const Sequelize = require('sequelize')
const sequelize = require('./sequelize')

const Comment = sequelize.define('comment', {
  id: { type: Sequelize.INTEGER, allowNull: false, autoIncrement: true, primaryKey: true },
  fid: { type: Sequelize.INTEGER, allowNull: false },
  uid: { type: Sequelize.INTEGER, allowNull: true },
  desc: { type: Sequelize.STRING(500)},
  name: { type: Sequelize.STRING },
  addtime: { type: Sequelize.DATE }
})

module.exports = Comment